package com.im.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
 * 配置
 */
@Component
public class Config {

	@Value("${server.name}")
	private String serverName;
	
	@Value("${task.removeDataDay}")
	private Integer removeDataDay;
	@Value("${task.removeCashHour}")
	private Integer removeCashHour;

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public Integer getRemoveDataDay() {
		return removeDataDay;
	}

	public void setRemoveDataDay(Integer removeDataDay) {
		this.removeDataDay = removeDataDay;
	}
	
	

	public Integer getRemoveCashHour() {
		return removeCashHour;
	}

	public void setRemoveCashHour(Integer removeCashHour) {
		this.removeCashHour = removeCashHour;
	}

	@Override
	public String toString() {
		return "Config [serverName=" + serverName + ", removeDataDay=" + removeDataDay + ", removeCashHour="
				+ removeCashHour + "]";
	}

	
}
